import Vue from 'vue'
import Vuex from 'vuex'
//导入模块js
import user from './modules/user'

//导入数据持久化插件
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    //注册模块
    user
   
  },
  //配置数据持久化插件
  plugins:[createPersistedState()]
})
